#!/bin/bash
echo "Start apply patch from X9E BuildSystem ..."

# 设置目录变量
PWD_DIR=$(pwd)
DIR="$PWD_DIR/../buildsystem"

cd $DIR

git apply $PWD_DIR/buildsystem_patch/buildsystem.patch


cd $DIR/rtos/freertos_safetyos

git apply $PWD_DIR/buildsystem_patch/freertos_safetyos.patch

cd $DIR/rtos/lk_boot/target

git apply $PWD_DIR/buildsystem_patch/target.patch

cd $DIR/yocto/source/linux

git apply $PWD_DIR/buildsystem_patch/linux.patch

